package com.fitness.front.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fitness.front.modal.course.entity.CourseReserve;
import com.fitness.front.modal.course.params.CourseReserveQueryParams;
import com.fitness.front.modal.course.vo.CourseReserveVO;

public interface ICourseReserveService extends IService<CourseReserve> {
    //预约未支付
    int COURSE_RESERVE_NO_PAY = 0;
    //预约支付成功
    int COURSE_RESERVE_PAY_SUCCESS = 1;
    //预约取消支付
    int COURSE_RESERVE_PAY_CANCEL = 2;
    //取消预约
    int COURSE_RESERVE_CANCEL = 3;
    //预约支付失败
    int COURSE_RESERVE_PAY_FAILURE = 4;

    Page<CourseReserveVO> getCourseReservePage(Long memberId, CourseReserveQueryParams queryParams);

    void reserveCourse(CourseReserve newCourseReserve);

    boolean payment(Long courseId,Long memberId, String memberName, Long amount,String comment);

}
